#include <iostream>
#include <cmath>
#include <conio.h>
using namespace std;
class CPolygon{
protected:
	int width;
	int	height;
public:
	void setValues(int a, int b);
};
class COutput{
public:
	void writeln(int i);
};
class CRectangle:public CPolygon,public COutput{
public:
	int area();
};
class CTriangle:public CPolygon, public COutput{
public: int area();
};